const { ethers } = require("hardhat")

async function main() {
    const BytesAndEncoding = await (
        await ethers.getContractFactory("Encoding")
    ).deploy()

    console.log(await BytesAndEncoding.combineStrings())

    console.log(await BytesAndEncoding.encodeNumber())

    console.log(await BytesAndEncoding.encodeString())

    console.log(await BytesAndEncoding.encodePackedString())

    console.log(await BytesAndEncoding.decodeToString())

    console.log(await BytesAndEncoding.mulitDecode())
}

main()
    .then(() => process.exit(0))
    .catch((e) => {
        console.warn(e)
        process.exit(1)
    })
